package listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Method;

import javax.swing.JFrame;

import windows.MethodWindow;

public class InvokeMethodButton implements ActionListener{
	 private Method method;
	 private Object object;
	 private JFrame window;
	 
	 public InvokeMethodButton(Object object, Method method, JFrame window){
		 this.method = method;
		 this.object = object;
		 this.window = window;
	 }
	 
	@Override
	public void actionPerformed(ActionEvent e) {
		new MethodWindow(method, object, window);
	}

}
